package com.brzjomo.secretiveworld.object.item;

import java.util.List;
import java.util.function.Supplier;

import javax.annotation.Nullable;

import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.item.ItemStack;
import net.minecraft.item.MusicDiscItem;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraft.world.World;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

public class ModMusicDiscItem extends MusicDiscItem {

	public ModMusicDiscItem(int comparatorValue, Supplier<SoundEvent> soundSupplier, Properties builder) {
		super(comparatorValue, soundSupplier, builder);
	}

	@Override
	@OnlyIn(Dist.CLIENT)
	public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip,
			ITooltipFlag flagIn) {
		tooltip.add(new TranslationTextComponent(this.getTranslationKey() + ".desc").applyTextStyle(TextFormatting.GRAY));
		tooltip.add(new TranslationTextComponent(this.getTranslationKey() + ".desc_2").applyTextStyle(TextFormatting.GRAY));
		tooltip.add(new TranslationTextComponent(this.getTranslationKey() + ".desc_3").applyTextStyle(TextFormatting.GRAY));
		tooltip.add(new TranslationTextComponent(this.getTranslationKey() + ".desc_4").applyTextStyle(TextFormatting.GRAY));
		tooltip.add(new TranslationTextComponent(this.getTranslationKey() + ".desc_5").applyTextStyle(TextFormatting.GRAY));
	}
}
